package com.hdl.client;

import com.hdl.service.UserService;


/**
 * @author Administrator
 */
public class ClientBootstrap {
    public static final String providerName = "UserService#sayHello#";

    public static void main(String[] args) throws InterruptedException { // 创建一个代理对象
        UserService service = (UserService) RpcConsumer.createProxy(UserService.class);
        for (; ; ) {
            Thread.sleep(2000);
            System.out.println(service.sayHello("are you ok ?"));
            System.out.println(service.sayHello2("张三", "你好!"));
        }
    }
}